package com.fish.gaiety.gateway.controller;

import com.fish.gaiety.gateway.controller.info.GenericPOJOController;
import com.fish.gaiety.gateway.entity.TenantApi;
import com.fish.gaiety.gateway.entity.dto.Tenant;
import com.fish.gaiety.gateway.service.GenericPOJOService;
import com.fish.gaiety.gateway.service.TenantService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/tenant")
public class TenantController extends GenericPOJOController<Tenant, Long, TenantApi> {

    private final TenantService tenantService;

    @Override
    protected GenericPOJOService<Tenant, Long, TenantApi> getService() {
        return tenantService;
    }
}
